/*
 * Copyright @ 2025 weili23
 * com.example.ai.tools 10:15
 * All right reserved.
 */

package com.example.ai.tools;

import dev.langchain4j.agent.tool.Tool;
import org.springframework.stereotype.Component;

/**
 * @desc: 计算器工具
 * @author: weili23
 * @createTime: 2025/5/7 10:15
 * @version: v1.0
 */
@Component
public class CalculatorTools {
    @Tool
    public double add(double a, double b) {
        System.out.println("调用了add方法");
        return a + b;
    }
    @Tool
    public double subtract(double a, double b) {
        System.out.println("调用了subtract方法");
        return a - b;
    }
}
